<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="renderer" content="webkit|ie-comp|ie-stand" />
		<meta name="wiewport" content="width=device-width, initial-scale=1.0, maxinum-scale=1.0, user-scaleable=no" />
		<title>企业列表-管理后台</title>
		<link rel="stylesheet" href="/css/bootstrap-datetimepicker.css">
		<script type="text/javascript" src="/js/userCommon.js"></script>
		<script type="text/javascript" src="/js/bootstrap-datetimepicker.js"></script>
        <script type="text/javascript" src="/js/bootstrap-datetimepicker.zh-CN.js"></script>
	</head>

	<body class="main_body">
		<!--头部nav-->
		<div class="navbar navbar-default">
			<div class="container">
				<ul class="nav text-center quick_enter">
					<li><img src="/img/logo_login_03.jpg" class="nav_img" /></li>
					<li class="quick_enterli m-l-md">
						<a href="/entry.html">首页 </a>
					</li>
					<li class="quick_enterli">
						<a href="/theme.html" class="">强链接企业</a>
					</li>
					<li class="quick_enterli">
						<a href="/partner.html" class="">战略合作伙伴</a>
					</li>
					<li class="quick_enterli">
						<a href="/data.html" class="">数据看板</a>
					</li>
					<li class="dropdown pull-right admin_info">
						<img src="/img/shejishi_07.jpg" class="img-photo" />
						<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
							<span id="user_span"></span> <span class="drop_caret"></span>
						</a>
						<ul class="dropdown-menu">
							<li>
								<a href="/usercenter/myAttention.html" ><i class="fa fa-user-secret"></i> 个人中心</a>
							</li>
							<li class="hidden" id="backPageEnter1">
								<a href="javascript:void(0)" ><i class="fa fa-server"></i> 后台管理</a>
							</li>
							<li>
								<a href="javascript:void(0)" id="logout_a"><i class="fa fa-sign-out"></i> 退出登录</a>
							</li>
						</ul>
					</li>
				</ul>
			</div>
		</div>
		<!--主体-->
		<div class="container containerbox">
			<!--左边导航-->
			<div class="left_side">
				<div class="ibox">
					<h3 class="topTitle">账号管理</h3>
					<ul class="leftMeun">
                        <li>
							<a href="/admin/accountList.html"><i class="fa fa-weixin" aria-hidden="true"></i>账号列表</a>
						</li>
						<li>
							<a href="/admin/addAccount.html"><i class="fa fa-unlink" aria-hidden="true"></i>新增账号</a>
						</li>
					</ul>
					<h3 class="topTitle">审核管理</h3>
					<ul class="leftMeun">
						<li>
							<a href="/admin/businessContactsExamine.html"><i class="fa fa-weixin" aria-hidden="true"></i>联系人审核</a>
                        </li>
                        <li>
							<a href="/admin/businessInteractionExamine.html"><i class="fa fa-weixin" aria-hidden="true"></i>链接互动审核</a>
                        </li>
                        <li>
							<a href="/admin/businessNeedExamine.html"><i class="fa fa-weixin" aria-hidden="true"></i>企业需求审核</a>
                        </li>
                        <li  class="active">
							<a href="/admin/businessList.html"><i class="fa fa-weixin" aria-hidden="true"></i>企业审核</a>
						</li>
						<li class="">
							<a href="/admin/partnerList.html"><i class="fa fa-weixin" aria-hidden="true"></i>合作伙伴审核</a>
						</li>
					</ul>
				</div>

			</div>
			<!--右边-->
			<div class="right_side">
				<div class="ibox">
					<div class="ibox-content" >
						<div class="comform-inline">
							<label>企业名称：</label>
                            <input type="text" style="width: 150px;"  id="sentName" placeholder="请输入企业名称">
							<label>状态：</label>
							<select id="dataType" style="width: 100px;">
								<option value="0" selected>全部</option>
								<option value="-1">未审核</option>
								<option value="1">已审核</option>
							</select>
                            <button type="button" id="searchBtn" class="btn">查询</button>
							<a href="" id="exportBtn" target="_blank" class="btn" style="float:right">导出</a>
							<!-- <button type="button" id="do-add" class="btn" style="float:right;margin-right: 10px;">增加</button> -->
                        </div>
						<table class="table_at">
							<tbody><tr class="ac_title">
								<th style="width: 10%;">序号</th>
								<th style="width: 30%;">企业名称</th>
								<th style="width: 15%;">注册资本</th>
								<th style="width: 15%;">匹配状态</th>
								<th style="width: 15%;">审核状态</th>
								<th style="width: 15%;">操作</th>
							</tr>
							</tbody>
							<tbody id="list">
								
							</tbody>
						</table>

						<div class="pagination-box">
							<ul class="pagination"></ul>
						</div>
					</div>
				</div>
			</div>
		</div>
		<!--footer-->
		<div class="footer" id="footerA"> </div>
		<!--查看-->
		<div class="modal fade " tabindex="-1" role="dialog" id="myModal0">
			<div class="modal-dialog modal-lg" role="document" style="margin-top: 10%;">
				<div class="modal-content">
					<div class="modal-header">	
						<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
						<h4 class="modal-title"><i class="fa fa-pencil"></i> 企业信息</h4>
					</div>
					<div class="modal-body">
						<!--错误信息展示-->
						<div class="msg-wrap hidden">
							<div class="msg-error col-sm-8 col-sm-offset-3"><b></b><span id="msg_txt"></span></div>
						</div>
						<form action="" class="form-horizontal" >
							<div class="form-group">
								<label for="" class="col-sm-3 control-label"> 企业名称:</label>
								<div class="col-sm-8 ">
									<input type="text" id="entName0" class="form-control" readonly>
								</div>
							</div>
							<div class="form-group">
								<label for="" class="col-sm-3 control-label"> 注册时间:</label>
								<div class="col-sm-8 ">
									<input type="text" id="esdateStr0" class="form-control" readonly>
								</div>
							</div>
							<div class="form-group">
								<label for="" class="col-sm-3 control-label"> 注册资本:</label>
								<div class="col-sm-8 ">
									<input type="text" id="regcap0" class="form-control" readonly>
								</div>
							</div>
							<div class="form-group">
								<label for="" class="col-sm-3 control-label"> 官网:</label>
								<div class="col-sm-8 ">
									<input type="text" id="website0" class="form-control" readonly>
								</div>
							</div>
							<div class="form-group">
								<label for="" class="col-sm-3 control-label"> 公司简介:</label>
								<div class="col-sm-8 ">
									<textarea class="form-control" id="description0" placeholder="请输入公司简介" readonly></textarea>
								</div>
							</div>
							<div class="form-group">
								<label for="" class="col-sm-3 control-label"> 审核状态:</label>
								<div class="col-sm-8 ">
									<input type="text" id="labelVerify0" class="form-control" readonly>
								</div>
							</div>
							<div class="form-group">
								<label for="" class="col-sm-3 control-label"> 匹配状态:</label>
								<div class="col-sm-8 ">
									<input type="text" id="jzzsstatus0" class="form-control" readonly>
								</div>
							</div>
						</form>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
						<button type="button" class="btn btn-primary btn-shenhe">审核</button>
                        <button type="button" class="btn btn-primary btn-delete">删除</button>
					</div>
				</div>
				<!-- /.modal-content -->
			</div>
			<!-- /.modal-dialog -->
		</div>
		<!--修改-->
		<div class="modal fade " tabindex="-1" role="dialog" id="myModal">
			<div class="modal-dialog modal-lg" role="document" style="margin-top: 10%;">
				<div class="modal-content">
					<div class="modal-header">	
						<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
						<h4 class="modal-title"><i class="fa fa-pencil"></i> 企业信息</h4>
					</div>
					<div class="modal-body">
						<!--错误信息展示-->
						<div class="msg-wrap hidden">
							<div class="msg-error col-sm-8 col-sm-offset-3"><b></b><span id="msg_txt"></span></div>
						</div>
						<form action="" class="form-horizontal" >
							<div class="form-group">
								<label for="" class="col-sm-3 control-label"> 企业名称:</label>
								<div class="col-sm-8 ">
									<input type="text" id="entName" class="form-control" placeholder="请输入企业名称">
								</div>
							</div>
							<div class="form-group">
								<label for="" class="col-sm-3 control-label"> 注册时间:</label>
								<div class="col-sm-8 ">
									<input type="text" id="esdateStr" class="form-control" placeholder="请选择注册时间">
								</div>
							</div>
							<div class="form-group">
								<label for="" class="col-sm-3 control-label"> 注册资本:</label>
								<div class="col-sm-8 ">
									<input type="text" id="regcap" class="form-control" placeholder="请输入注册资本(单位万元)" onkeyup="value=value.replace(/^(0+)|[^\d]+/g,'')">
								</div>
							</div>
							<div class="form-group">
								<label for="" class="col-sm-3 control-label"> 官网:</label>
								<div class="col-sm-8 ">
									<input type="text" id="website" class="form-control" placeholder="请输入官方网址">
								</div>
							</div>
							<div class="form-group">
								<label for="" class="col-sm-3 control-label"> 公司简介:</label>
								<div class="col-sm-8 ">
									<textarea class="form-control" id="description" placeholder="请输入公司简介"></textarea>
								</div>
							</div>
							<div class="form-group">
								<label for="" class="col-sm-3 control-label"> 审核状态:</label>
								<div class="col-sm-8 ">
									<input type="text" id="labelVerify" class="form-control" readonly>
								</div>
							</div>
							<div class="form-group">
								<label for="" class="col-sm-3 control-label"> 匹配状态:</label>
								<div class="col-sm-8 ">
									<input type="text" id="jzzsstatus" class="form-control" readonly>
								</div>
							</div>
						</form>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
						<button type="button" class="btn btn-primary btn-edit">修改</button>
						<button type="button" class="btn btn-primary btn-add">增加</button>
					</div>
				</div>
				<!-- /.modal-content -->
			</div>
			<!-- /.modal-dialog -->
		</div>
		<script type="text/javascript">
			var pageNo = 1
            var pageSize = 12
			var nowEntName = '' // 存储当前选中企业的名称
			var listData = []
			var nowIndex = -1
			$(document).ready(function(){
				if($.cookie('AuthorizationAdmin')===null || localStorage.getItem('adminName') === null) {
					showErr("您处于未登录状态，请先登录", '1000000');
					return
				}
				$('#user_span').text(localStorage.getItem('realname') )

				// 导出超链接赋值
				$('#exportBtn').attr('href', service_url + '/a/zhiku/zkEntInfo/exportExcel?token='+$.cookie('AuthorizationAdmin'))

				loadResult()
				$('#searchBtn').click(function(){
                    loadResult()
				})

				$('#esdateStr').datetimepicker({ 
					language : 'zh-CN',
                    format: 'yyyy-mm-dd',   
                    weekStart: 1,
                    todayBtn:  1,
                    autoclose: 1,
                    todayHighlight: 1,
                    startView: 2,
                    minView: 2,
                    forceParse: 0 
				}).on('changeDate',function(e){  
		    
                });
				
				// 查看按钮
				$('#list').on('click', '.do-chakan', function(){
					$('.btn-shenhe,.btn-delete').hide()
					nowIndex = $(this).attr('add-index')
					$('#entName0').val(listData[nowIndex].entName)
					$('#esdateStr0').val(listData[nowIndex].esdateStr)
					var regcap = ''
					if (listData[nowIndex].regcap !== undefined && listData[nowIndex].regcap !== '') {
						regcap = listData[nowIndex].regcap  + '万元'
					}
					$('#regcap0').val(regcap)
					$('#website0').val(listData[nowIndex].website)
					$('#description0').val(listData[nowIndex].description)
					var labelVerifyStr = '未审核'
					if (listData[nowIndex].labelVerify == 0) labelVerifyStr = '未提交'
					if (listData[nowIndex].labelVerify == 1) labelVerifyStr = '已审核'
					$('#labelVerify0').val(labelVerifyStr)
					$('#jzzsstatus0').val(listData[nowIndex].jzzsstatus == '0' ? '未匹配':'已匹配')
					$('#myModal0').modal('show');
				})
				// 审核按钮
				$('#list').on('click', '.do-shenhe', function(){
					$('.btn-shenhe').show()
					$('.btn-delete').hide()
					nowIndex = $(this).attr('add-index')
					$('#entName0').val(listData[nowIndex].entName)
					$('#esdateStr0').val(listData[nowIndex].esdateStr)
					var regcap = ''
					if (listData[nowIndex].regcap !== undefined && listData[nowIndex].regcap !== '') {
						regcap = listData[nowIndex].regcap  + '万元'
					}
					$('#regcap0').val(regcap)
					$('#website0').val(listData[nowIndex].website)
					$('#description0').val(listData[nowIndex].description)
					var labelVerifyStr = '未审核'
					if (listData[nowIndex].labelVerify == 0) labelVerifyStr = '未提交'
					if (listData[nowIndex].labelVerify == 1) labelVerifyStr = '已审核'
					$('#labelVerify0').val(labelVerifyStr)
					$('#jzzsstatus0').val(listData[nowIndex].jzzsstatus == '0' ? '未匹配':'已匹配')
					$('#myModal0').modal('show');
				})
				// 删除按钮
				$('#list').on('click', '.do-delete', function(){
					$('.btn-delete').show()
					$('.btn-shenhe').hide()
					nowIndex = $(this).attr('add-index')
					$('#entName0').val(listData[nowIndex].entName)
					$('#esdateStr0').val(listData[nowIndex].esdateStr)
					var regcap = ''
					if (listData[nowIndex].regcap !== undefined && listData[nowIndex].regcap !== '') {
						regcap = listData[nowIndex].regcap  + '万元'
					}
					$('#regcap0').val(regcap)
					$('#website0').val(listData[nowIndex].website)
					$('#description0').val(listData[nowIndex].description)
					var labelVerifyStr = '未审核'
					if (listData[nowIndex].labelVerify == 0) labelVerifyStr = '未提交'
					if (listData[nowIndex].labelVerify == 1) labelVerifyStr = '已审核'
					$('#labelVerify0').val(labelVerifyStr)
					$('#jzzsstatus0').val(listData[nowIndex].jzzsstatus == '0' ? '未匹配':'已匹配')
					$('#myModal0').modal('show');
				})

				// 修改按钮
				$('#list').on('click', '.do-edit', function(){
					$('#labelVerify').parent().parent().show()
					$('#jzzsstatus').parent().parent().show()
					$('.btn-edit').show()
					$('.btn-add').hide()
					nowIndex = $(this).attr('add-index')
					$('#entName').val(listData[nowIndex].entName)
					$('#esdateStr').val(listData[nowIndex].esdateStr)
					$('#regcap').val(listData[nowIndex].regcap || '')
					$('#website').val(listData[nowIndex].website)
					$('#description').val(listData[nowIndex].description)
					var labelVerifyStr = '未审核'
					if (listData[nowIndex].labelVerify == 0) labelVerifyStr = '未提交'
					if (listData[nowIndex].labelVerify == 1) labelVerifyStr = '已审核'
					$('#labelVerify').val(labelVerifyStr)
					$('#jzzsstatus').val(listData[nowIndex].jzzsstatus == '0' ? '未匹配':'已匹配')
					$('#myModal').modal('show');
				})

				// 增加按钮
				$('#do-add').click(function() {
					$('#labelVerify').parent().parent().hide()
					$('#jzzsstatus').parent().parent().hide()
					$('.btn-edit').hide()
					$('.btn-add').show()
					// 初始化表单值
					$('#entName').val('')
					$('#esdateStr').val('')
					$('#regcap').val('')
					$('#website').val('')
					$('#description').val('')
					$('#myModal').modal('show')
				})

				// 弹窗内审核按钮
				$('.btn-shenhe').click(function(){
                    var id = listData[nowIndex].id
                    $.ajax({
                        url: service_url + '/a/zhiku/zkEntInfo/entInfoVerify?token=' + $.cookie('AuthorizationAdmin')+'&id='+id,
                        type: 'GET',
                        xhrFields: {
                            withCredentials: true
                        },
                        crossDomain: true,
                        contentType: 'application/json',
                        dataType: 'jsonp',
                        jsonpCallback:"success_jsonpCallback",  
                        processData: false, // 告诉jQuery不要去处理发送的数据
                        success: function(data) {
                            if (data.status === '00') {
                                $('#myModal0').modal('hide')
                                loadResult()
                                top.alert("审核成功",'','',{type: 'success'})
                            } else {
                                showErr(data.msg)
                            } 
                        },
                        error: function(XMLHttpRequest, textStatus, errorThrown) {
                            console.log(XMLHttpRequest, textStatus, errorThrown)
                        }
                    })
				})
				// 弹窗内删除按钮
				$('.btn-delete').click(function(){
                    var id = listData[nowIndex].id
                    $.ajax({
                        url: service_url + '/a/zhiku/zkEntInfo/logicDelete?token=' + $.cookie('AuthorizationAdmin')+'&id='+id,
                        type: 'GET',
                        xhrFields: {
                            withCredentials: true
                        },
                        crossDomain: true,
                        contentType: 'application/json',
                        dataType: 'jsonp',
                        jsonpCallback:"success_jsonpCallback",  
                        processData: false, // 告诉jQuery不要去处理发送的数据
                        success: function(data) {
                            if (data.status === '00') {
                                $('#myModal0').modal('hide')
                                loadResult()
                                top.alert("删除成功",'','',{type: 'success'})
                            } else {
                                showErr(data.msg)
                            } 
                        },
                        error: function(XMLHttpRequest, textStatus, errorThrown) {
                            console.log(XMLHttpRequest, textStatus, errorThrown)
                        }
                    })
                })
				
				// 弹窗内修改按钮
				$('.btn-edit').click(function(){
					var id = listData[nowIndex].id
					var entName = $('#entName').val()
					var esdateStr = $('#esdateStr').val()
					var regcap = $('#regcap').val() == '' ? '':parseInt($('#regcap').val())
					var website = $('#website').val()
					var description = $('#description').val()
					if (entName == '') {
						showErr('企业名称不能为空')
						return
					}

					var paramStr = 'id='+id+'&entName='+encodeURIComponent(entName)+'&esdate='+encodeURIComponent(esdateStr)+'&regcap=' + encodeURIComponent(regcap) + '&website=' + encodeURIComponent(website) +'&description='+encodeURIComponent(description)+ '&token=' + $.cookie('AuthorizationAdmin')
                        $.ajax({
                            url: service_url + '/a/zhiku/zkEntInfo/updateEntInfo?' + paramStr,
                            type: 'GET',
                            xhrFields: {
                                withCredentials: true
                            },
                            crossDomain: true,
                            contentType: 'application/json',
                            dataType: 'jsonp',
                            jsonpCallback:"success_jsonpCallback",  
                            processData: false, // 告诉jQuery不要去处理发送的数据
                            success: function(data) {
                                if (data.status === '00') {
                                    top.alert("修改成功",'','',{type: 'success'})
                                    $('#myModal').modal('hide')
                                    loadResult()
                                } else {
                                    showErr(data.msg)
                                }   
                            },
                            error: function(XMLHttpRequest, textStatus, errorThrown) {
                                console.log(XMLHttpRequest, textStatus, errorThrown)
                            }
                        })
				})

				// 弹窗内增加按钮
				$('.btn-add').click(function(){
					var entName = $('#entName').val()
					var esdate = $('#esdateStr').val()
					var regcap = $('#regcap').val()
					var website = $('#website').val()
					var description = $('#description').val()
					if (entName == '') {
						showErr('企业名称不能为空！')
					} else {
						var paramStr = 'entName='+encodeURIComponent(entName)+'&esdate='+encodeURIComponent(esdate)+'&regcap='+encodeURIComponent(regcap)+'&website='+website+'&description='+encodeURIComponent(description)+'&isCooperate=0&token=' + $.cookie('Authorization')
						$.ajax({
						url: service_url + '/a/zhiku/zkEntInfo/saveEnt?'+paramStr,
						type: 'GET',
						xhrFields: {
							withCredentials: true
						},
						crossDomain: true,
						contentType: 'application/json',
						dataType: 'jsonp',
						jsonpCallback:"success_jsonpCallback",  
						processData: false, // 告诉jQuery不要去处理发送的数据
						success: function(data) { 
							if (data.status === '00') {
								top.alert('增加成功!','','',{type: 'success'})
								$('#myModal').modal('hide')
                                loadResult()
							} else {
								showErr(data.msg)
							}
						},
						error: function(XMLHttpRequest, textStatus, errorThrown) {
							console.log(XMLHttpRequest, textStatus, errorThrown)
						}
					})
					}
				})
			})

			// 加载数据
			function loadResult() {
				$('#list').empty()
                $('.pagination-box').hide()
				var labelVerify = $('#dataType').val()
                var paramStr = 'entName='+ encodeURIComponent($('#sentName').val()) + '&'
                if (labelVerify == 0) {
                    paramStr = paramStr + 'isCooperate=0&labelVerify=3&pageNo='+pageNo+'&pageSize='+pageSize+'&token=' + $.cookie('AuthorizationAdmin')
                } else {
                    paramStr = paramStr + 'isCooperate=0&labelVerify='+labelVerify+'&pageNo='+pageNo+'&pageSize='+pageSize+'&token=' + $.cookie('AuthorizationAdmin')
                }
				$.ajax({
                    url: service_url + '/a/zhiku/zkEntInfo/findAllList?'+paramStr,
                    type: 'GET',
                    xhrFields: {
                        withCredentials: true
                    },
                    crossDomain: true,
                    contentType: 'application/json',
                    dataType: 'jsonp',
                    jsonpCallback:"success_jsonpCallback",  
                    processData: false, // 告诉jQuery不要去处理发送的数据
                    success: function(data) {
						var data = JSON.parse(data.data)
						var list = data.list
						listData = list
                        if (data.count === 0) {
                            $('#list').append('<tr><td colspan="6" style="text-align:center">暂无数据</td></tr>')
                        } else {
                            var tempHtml = ''
                            for (var i = 0; i < list.length; i++) {
							   var esdate = list[i].esdateStr || ''		
							   var regcap = '未知'
							   if (list[i].regcap !== undefined && list[i].regcap !== '') {
									regcap = list[i].regcap / 10000 >= 1 ? (list[i].regcap / 10000) + '亿元' : list[i].regcap + '万元'
								}
								var statusHtml = ''
								var doHtml = ''
								var jzzsstatusHtml = list[i].jzzsstatus == '0' ? '未匹配':'已匹配'
								if (list[i].labelVerify == -1) {
									statusHtml = '<span class="examine-no">未审核</span>'
									doHtml = '<span class="do-chakan" add-index="'+i+'">查看</span><span class="do-shenhe" add-index="'+i+'">审核</span><span class="do-edit" add-index="'+i+'">修改</span><span class="do-delete" add-index="'+i+'">删除</span>'
								} else if (list[i].labelVerify == 1) {
									statusHtml = '<span class="examine-yes">已审核</span>'
									doHtml = '<span class="do-chakan" add-index="'+i+'">查看</span><span class="do-edit" add-index="'+i+'">修改</span><span class="do-delete" add-index="'+i+'">删除</span>'
								} else if (list[i].labelVerify == 0) {
									statusHtml = '未提交'
								}

								tempHtml = tempHtml + '<tr><td>'+((pageNo-1)*pageSize+i+1)+'</td><td>'+list[i].entName+'</td><td>'+regcap+'</td><td>'+jzzsstatusHtml+'</td><td>'+statusHtml+'</td><td>'+doHtml+'</td></tr>'
                            }
                            $('#list').append(tempHtml)
                            $('.pagination-box').show()
                            $('.pagination').jqPaginator({
                                totalCounts: data.count,
                                pageSize: pageSize,
                                visiblePages: 10,
                                currentPage: pageNo,
                                first: '<li class="first"><a href="javascript:void(0);">首页<\/a><\/li>',
                                prev: '<li class="prev"><a href="javascript:void(0);">&laquo;<\/a><\/li>',
                                next: '<li class="next"><a href="javascript:void(0);">&raquo;<\/a><\/li>',
                                last: '<li class="last"><a href="javascript:void(0);">末页<\/a><\/li>',
                                page: '<li class="page"><a href="javascript:void(0);">{{page}}<\/a><\/li>',
                                onPageChange: function (num, type) {
                                    if (type === 'change') {
                                        pageNo = num
                                        loadResult()
                                    }
                                }
                            });
                        }
                    },
                    error: function(XMLHttpRequest, textStatus, errorThrown) {
                        hideLoading()
                        console.log(XMLHttpRequest, textStatus, errorThrown)
                    }
                })
			}
		</script>
	</body>

</html>